<?php

define('NOM',	'tdecarpentier');
define('PASSWORD',	'tdecarpentier');
define('BASE',	'localhost/ROSA');

class Controller {
	protected $_db;
	
	public function __construct() {
		$this->_db = oci_connect(NOM, PASSWORD, BASE,'AL32UTF8');
		if(! $this->_db) {
			echo 'Echec de l\'ouverture de la connection';
			exit;
		}
	}
	
	public function __destruct() {
		oci_close($this->_db);
	}
}
?>
